<template>
  <div class="layoutSidebar1 cu-flex">
    <div class="cu-flex-average">
      <PanelView title="实时疫情播报" bgClass="cmp-panel-cnt--big">

        <TabLeft></TabLeft>
        <div class="echartsTitle">{{echartsTitle}}</div>
        <WsyjDiseaseIncreaseTrend></WsyjDiseaseIncreaseTrend>
      </PanelView>
    </div>
    <div class="cu-flex-average">
      <PanelView title="各地区疫情详情" bgClass="cmp-panel-cnt--big">
          <epidemic-situation-info></epidemic-situation-info>
      </PanelView>
    </div>
  </div>
</template>
<script lang="ts">
  import { Component, Vue, Prop } from 'vue-property-decorator';
  import PanelView from '@/components/common/panel/PanelView.vue';
  import TabLeft from '@/views/wsyj/ZhtsModule/TabLeft.vue';
  import EpidemicSituationInfo from '@/views/wsyj/ZhtsModule/EpidemicSituationInfo.vue';
  import WsyjDiseaseIncreaseTrend from "@/components/common/WsyjDiseaseIncreaseTrend.vue";
  @Component({
    name: 'ZhtsSidebar',
    components: {
      PanelView,
      TabLeft,
      EpidemicSituationInfo,
      WsyjDiseaseIncreaseTrend
    },
  })
  export default class ZhtsSidebar extends Vue {

      get echartsTitle() {
          return  this.$store.state.ZhtsModule.district.shortName + "疫情趋势图";
      }
  }
</script>
<style lang="less" scoped>
  @import url('../../../assets/css/LayoutSidebar.less');
</style>

<style lang="less" scoped>
  .layoutSidebar1 {
    position: relative;
    height: 100%;
    width: 460px;
    color: #fff;
    margin-left: 30px;
  }

  .cu-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    .cu-flex-average {
      flex: 1 1;
      width: 100%;
      box-sizing: border-box;
    }
  }
  .echartsTitle {
    position: relative;
    margin-left: 24px;
    font-size: 22px;
    display: inline-block;
    background-image: -webkit-gradient(linear, left bottom, left top, from(#53e5ff), color-stop(#fff), to(#fff044));
    background-image: linear-gradient(0deg, #53e5ff, #fff, #fff044);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
    display: block;
    box-sizing: border-box;
    pointer-events: none;

    &::after {
      content: '';
      display: inline-block;
      position: absolute;
      background: url('../../../assets/img/panel/panel_title_bg.png') no-repeat right 0;
      top: 0;
      bottom: -7px;
      left: 0;
      width: 50%;
      z-index: 1;
      pointer-events: none;
    }
  }
</style>